package ph.com.gs3.formalistics.model.communicators;

import ph.com.gs3.formalistics.model.valueobjects.application.APIResponse;
import ph.com.gs3.formalistics.model.valueobjects.application.APIResponse.APIInvalidResponseException;

public class UserCommunicatorModule extends HttpCommunicatorModule {

	public UserCommunicatorModule(HttpCommunicator communicator, String server) {
		super(communicator, server);
	}

	public APIResponse getOnlineUsers() throws CommunicatorException, APIInvalidResponseException {

		commonValidation();

		String url = server + "/API/online-users";
		return getResponse(url, null);

	}

}
